const { merge } = require('webpack-merge')
const common = require('./webpack.common')


const devConfig = {
  mode:'development',
  devtool: 'cheap-module-eval-source-map',
  devServer: {
    overlay: true,
    contentBase: './dist',
    open: true,
    port: 3000,
    hotOnly: true
  },
  optimization: {
    usedExports: true,
  }
}

module.exports = merge(common, devConfig)